package org.gwh.airagknowledge.repository;

import org.gwh.airagknowledge.entity.KnowledgeBase;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.Optional;

@Repository
public interface KnowledgeBaseRepository extends JpaRepository<KnowledgeBase, Long> {
    
    Optional<KnowledgeBase> findByName(String name);
    
    boolean existsByName(String name);
} 